<include file="../Public/header_sh.html" />

<script type="text/javascript">
//鼠标移动表格效果
$(document).ready(function(){
    $("tr[overstyle='on']").hover(
      function () {
        $(this).addClass("bg_hover");
      },
      function () {
        $(this).removeClass("bg_hover");
      }
    );
    couponGoPage(1);
});

/**查询数据分页**/
function couponGoPage(pno){
	$.kajax({      
       			ajx_rtn_type:'HTML',
       			url:"{:U('shanghu://Coupon/coupon_list_box')}",      
       			type:'post', //数据发送方式  
       			data:{ pno:pno,gid:$('#gid').val() } ,    
       			async: false ,//同步方式     
       			success: function(html_){
							$('#coupon_list').html(html_);
	       				 }
	});
}
</script>

    <!--  START CONTENT WRAPPER -->
    <div id="content_wrapper">
	
      <!--  START PRIMARY CONTENT style="position: relative;"-->
      <div id="primary_content">

        <h2>{:K('SP_COUPON_NM')}列表</h2>
        <div class="clear"></div>
       	<!-------- 搜索开始 -------->
		  	<div id="search_div" style="padding: 10px 0;text-align:center;">
				<div class="sform">
						<input id="pno" name="pno" type="hidden" value="1">
					    <dl>
					    	
					      <span>商品：</span>
					      <input type="text" readonly="" onclick="k_pop_syncSearch('gid'
						        													,'goodsdesc'
						        													,'选择商品'
						        													,'/shanghu/index.php/Public/ajxgoods/partner_id/<php>echo $_SESSION['qp_parent_id'];</php>'
						        													,null
						        													,null)" 
						        		  title="选择商品！" value="{$gid|getGoodsTitle}" id="goodsdesc"  class="normal_input" style="width:100px" >
						  	<input type="hidden" id="gid" name="gid" value="{$gid}">
					    	<span>&nbsp;&nbsp;&nbsp;</span>
					    	<input type="button" class="btn_b" onclick="couponGoPage(1)" value="查询" />
					    </dl>
			  	</div>
		  	</div>
		  	<!-------- 搜索结束 -------->

  			<div id="coupon_list"></div>
    	<!-- Paginator end -->
      </div>
      <!--  END PRIMARY CONTENT -->
 	  <!--  START SIDEBAR -->
      <div id="sidebar">
        <h3>常用操作</h3>
       	<include file="../shanghu/Tpl/default/Public/quickoptlist.html" />
        
      </div><!--  end div #sidebar -->
      <!--  END SIDEBAR -->
    </div><!--  end div #content_wrapper -->
<!--  END CONTENT_WRAPPER -->

<include file="../Public/footer_sh.html" />